package com.cy.store.service;

import com.cy.store.entity.User;

public interface IUserService {
    void reg(User user);
    User login(String username,String password);
    void changePassword(Integer uid, String username, String oldPassword, String newPassword);
    /**
     * 根据id查询用户数据
     * @param uid
     * @return
     */
    User getByUid(Integer uid);

    /**
     * 更新用户数据操作
     * @param uid
     * @param username
     * @param user
     */
    void changeInfo(Integer uid,String username,User user);

    /**
     * 更新头像
     * @param uid
     * @param avatar
     * @param username
     */
    void changeAvatar(Integer uid,String avatar,String username);

}
